<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/1
 * Time: 10:21
 */

//网站相关路由

//文件下载
Route::get('file/download/{fileName}', 'FileController@download')->name('file.download');

//网站相关路由

Route::post('site/plats','SiteController@plats')->name('site.plats');
Route::post('site/players','SiteController@players')->name('site.players');
Route::get('site/{site}/adminDeposit', 'SiteController@adminDeposit')->name('site.admin_deposit');
Route::post('site/{site}/adminDeposit', 'SiteController@adminDepositStore')->name('site.admin_deposit.store');
Route::get('site/platMutualTransfer','SiteController@platMutualTransfer')->name('site.plat_mutual_transfer');
Route::post('site/{site}/platMutualTransfer','SiteController@platMutualTransferStore')->name('site.plat_mutual_transfer.store');
Route::get('site/depositLog', 'SiteController@depositLog')->name('site.deposit.log');
Route::get('site/bonusPointLog', 'SiteController@bonusPointLog')->name('site.bonus_point_log');
Route::get('site/bonusPoint', 'SiteController@bonusPoint')->name('site.bonus_point');
Route::post('site/{site}/bonusPointUpdate', 'SiteController@bonusPointUpdate')->name('site.bonus_point_update');
Route::delete('site/batchDestroy', 'SiteController@batchDestroy')->name('site.batch_destroy');
Route::resource('site', 'SiteController');

//代理相关路由
Route::get('agent/earningLog', 'AgentController@earningLog')->name('agent.earning');
Route::get('agent/withdrawal', 'AgentController@withdrawal')->name('agent.withdrawal');
Route::get('agent/withdrawalFlow', 'AgentController@withdrawalFlow')->name('agent.withdrawal.flow');
Route::get('agent/withdrawalFlow/{agentWithdrawalFlow}/audit', 'AgentController@auditWithdrawalFlow')->name('agent.withdrawal.audit');
Route::get('agent/withdrawalFlow/{agentWithdrawalFlow}/cancel', 'AgentController@cancelWithdrawalFlow')->name('agent.withdrawal.cancel');
Route::post('agent/{agent}/withdrawal', 'AgentController@withdrawalStore')->name('agent.withdrawal.store');
Route::delete('agent/batchDestroy', 'AgentController@batchDestroy')->name('agent.batch_destroy');
Route::resource('agent', 'AgentController');

//平台相关路由
Route::delete('main_game_plat/batchDestroy', 'MainGamePlatController@batchDestroy')->name('main_game_plat.batch_destroy');
Route::resource('main_game_plat', 'MainGamePlatController');

//游戏记录报表
Route::resource('player_bet_flow', 'PlayerBetFlowController');

//游戏资料管理
Route::delete('game_list', 'GameListController@destroy')->name('game_list.destroy');
Route::resource('game_list', 'GameListController', ['only' => ['index', 'create', 'store', 'update', 'edit']]);

//赔率盘口管理
Route::delete('odds_handicap', 'OddsHandicapController@destroy')->name('odds_handicap.destroy');
Route::resource('odds_handicap', 'OddsHandicapController', ['only' => ['index', 'create', 'store', 'update', 'edit']]);

//限红盘口管理
Route::delete('quota_handicap', 'QuotaHandicapController@destroy')->name('quota_handicap.destroy');
Route::resource('quota_handicap', 'QuotaHandicapController', ['only' => ['index', 'create', 'store', 'update', 'edit']]);

//玩家转账相关
Route::get('player_transfer','PlayerTransferController@index')->name('player_transfer.index');
Route::post('player_transfer/{player_transfer}/update_status','PlayerTransferController@updateStatus')->name('player_transfer.update_status');